package com.tanner.mapreducedemo.rpc;

import org.apache.hadoop.ipc.ProtocolSignature;

import java.io.IOException;

/**
 * @author zhang.t.c
 * @date 2021/7/25
 */
public class MyInterfaceImpl implements MyInterface {
    @Override
    public String findName(String studentId) {
        if ("G20210735010309".equals(studentId)) {
            return "tanner";
        }
        return null;
    }

    @Override
    public long getProtocolVersion(String protocol, long clientVersion) throws IOException {
        return MyInterface.versionID;
    }

    @Override
    public ProtocolSignature getProtocolSignature(String protocol, long clientVersion, int clientMethodsHash) throws IOException {
        return null;
    }
}
